home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 13 April 1997
- // Author: gf
- //
- //
- // Procedure Name:
- // ModCurvesMenu
- //
- // Description:
- // Create the MODELLING->Curves menu
- //
- // Input Arguments:
- // parent to parent the menu to.
- //
- // Return Value:
- // None.
- //
-
- global proc ModCurvesMenu( string $parent )
- {
- int $dimWhenNoSelect = 0;
-
- setParent -m $parent;
- if( `menu -q -ni $parent` != 0 ) {
- //
- // Menu is built already - just return
- //
- return;
- }
- menuItem -l "CV Curve Tool"
- -annotation "CV Curve Tool: Create a curve on the grid or live surface specifying control vertices"
- -image "curveCV.xpm"
- -c "setToolTo curveContextCV" cvCurveItem;
- menuItem -optionBox true -image "curveCV.xpm"
- -annotation "CV Curve Tool Option Box"
- -l "CV Curve Tool Option Box"
- -c "setToolTo curveContextCV; toolPropertyWindow"
- cvCurveDialogItem;
- menuItem -l "EP Curve Tool"
- -annotation "EP Curve Tool: Create a curve on the grid or live surface specifying edit points"
- -image "curveEP.xpm"
- -c "setToolTo curveContextEP" epCurveItem;
- menuItem -optionBox true -image "curveEP.xpm"
- -annotation "EP Curve Tool Option Box"
- -l "EP Curve Tool Option Box"
- -c "setToolTo curveContextEP; toolPropertyWindow"
- epCurveDialogItem;
- menuItem -l "Pencil Curve Tool"
- -annotation "Pencil Curve Tool: Create a curve on the grid or live surface"
- -image "pencil.xpm"
- -c "setToolTo pencilContext" pencilCurveItem;
- menuItem -optionBox true -image "pencil.xpm"
- -annotation "Pencil Curve Tool Option Box"
- -l "Pencil Curve Tool Option Box"
- -c "setToolTo pencilContext; toolPropertyWindow"
- pencilCurveDialogItem;
-
- menuItem -d true;
-
- menuItem -l "Three Point Circular Arc Tool"
- -annotation "Three Point Arc Tool: Create a circular arc on the grid specifying three points"
- -image "threePointArc.xpm"
- -c "setToolTo threePointArcContext" threePointArcItem;
- menuItem -optionBox true -image "threePointArc.xpm"
- -annotation "Three point arc option Box"
- -l "Three Point Arc Tool Option Box"
- -c "setToolTo threePointArcContext; toolPropertyWindow"
- threePointArcDialogItem;
-
- menuItem -l "Two Point Circular Arc Tool"
- -annotation "Two Point Arc Tool: Create a circular arc on the grid specifying two points"
- -image "twoPointArc.xpm"
- -c "setToolTo twoPointArcContext" twoPointArcItem;
- menuItem -optionBox true -image "twoPointArc.xpm"
- -annotation "Two point arc option Box"
- -l "Two Point Arc Tool Option Box"
- -c "setToolTo twoPointArcContext; toolPropertyWindow"
- twoPointArcDialogItem;
-
- menuItem -d true;
-
-
- menuItem -l "Offset Curve"
- -c "performOffsetCurve 0;"
- -dmc "performOffsetCurve 2"
- -i "offsetCurve.xpm"
- -annotation "Offset Curve: Select a curve, isoparm or trim edge"
- offsetCrvItem;
- menuItem -optionBox true -i "offsetCurve.xpm"
- -annotation "Offset Curve Option Box"
- -l "Offset Curve Option Box"
- -c "performOffsetCurve 1"
- offsetCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|offsetCrvItem");
-
- menuItem -l "Offset Curve On Surface"
- -c "performOffsetCos 0;"
- -dmc "performOffsetCos 2"
- -i "offsetCos.xpm"
- -annotation "Offset Curve On Surface: Select a curve on surface, isoparm or trim edge"
- offsetCosItem;
- menuItem -optionBox true -i "offsetCos.xpm"
- -annotation "Offset Curve On Surface Option Box"
- -l "Offset Curve On Surface Option Box"
- -c "performOffsetCos 1"
- offsetCosDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|offsetCosItem");
-
- menuItem -l "Fillet Curve"
- -annotation "Fillet Curve: Select curve parameter points"
- -c "performFilletCurve 0" -dmc "performFilletCurve 2"
- -i "fillet.xpm" crvFilletItem;
- menuItem -optionBox true -i "fillet.xpm"
- -annotation "Fillet Curve Option Box"
- -l "Fillet Curve Option Box"
- -c "performFilletCurve 1"
- filletCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|crvFilletItem");
-
- menuItem -d true;
-
- menuItem -l "Duplicate Curves"
- -c "performDuplicateCurve 0"
- -dmc "performDuplicateCurve 2"
- -annotation "Duplicate Curves: Select surface curve(s)"
- -i "duplicateCurve.xpm" duplicateCurveItem ;
- menuItem -optionBox true -i "duplicateCurve.xpm"
- -annotation "Duplicate Curves Option Box"
- -l "Duplicate Curves Option Box"
- -c "performDuplicateCurve 1"
- duplicateCurveDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|duplicateCurveItem");
-
- menuItem -l "Fit B-spline"
- -c "performFitBspline 0;"
- -dmc "performFitBspline 2"
- -annotation "Fit B-spline: Select curve(s), isoparm(s) or trim edge(s)"
- -i "fitBSpline.xpm"
- fitBsplineItem;
- menuItem -optionBox true -i "fitBSpline.xpm"
- -annotation "Fit B-spline Option Box"
- -l "Fit B-spline Option Box"
- -c "performFitBspline 1"
- fitBsplineDialogItem;
- if( $dimWhenNoSelect )
- dimWhen -f "SomethingSelected" ($parent+"|fitBsplineItem");
- }
-
-